{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport React from 'react';\nexport var offset = 4;\nexport default function dropIndicatorRender(props) {\n  var _style;\n  var dropPosition = props.dropPosition,\n    dropLevelOffset = props.dropLevelOffset,\n    prefixCls = props.prefixCls,\n    indent = props.indent,\n    _props$direction = props.direction,\n    direction = _props$direction === void 0 ? 'ltr' : _props$direction;\n  var startPosition = direction === 'ltr' ? 'left' : 'right';\n  var endPosition = direction === 'ltr' ? 'right' : 'left';\n  var style = (_style = {}, _defineProperty(_style, startPosition, -dropLevelOffset * indent + offset), _defineProperty(_style, endPosition, 0), _style);\n  switch (dropPosition) {\n    case -1:\n      style.top = -3;\n      break;\n    case 1:\n      style.bottom = -3;\n      break;\n    default:\n      // dropPosition === 0\n      style.bottom = -3;\n      style[startPosition] = indent + offset;\n      break;\n  }\n  return /*#__PURE__*/React.createElement(\"div\", {\n    style: style,\n    className: \"\".concat(prefixCls, \"-drop-indicator\")\n  });\n}","map":{"version":3,"names":["React","offset","dropIndicatorRender","props","dropPosition","dropLevelOffset","prefixCls","indent","direction","startPosition","endPosition","style","top","bottom","createElement","className"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/tree/utils/dropIndicator.js"],"sourcesContent":["import React from 'react';\nexport const offset = 4;\nexport default function dropIndicatorRender(props) {\n  const {\n    dropPosition,\n    dropLevelOffset,\n    prefixCls,\n    indent,\n    direction = 'ltr'\n  } = props;\n  const startPosition = direction === 'ltr' ? 'left' : 'right';\n  const endPosition = direction === 'ltr' ? 'right' : 'left';\n  const style = {\n    [startPosition]: -dropLevelOffset * indent + offset,\n    [endPosition]: 0\n  };\n  switch (dropPosition) {\n    case -1:\n      style.top = -3;\n      break;\n    case 1:\n      style.bottom = -3;\n      break;\n    default:\n      // dropPosition === 0\n      style.bottom = -3;\n      style[startPosition] = indent + offset;\n      break;\n  }\n  return /*#__PURE__*/React.createElement(\"div\", {\n    style: style,\n    className: `${prefixCls}-drop-indicator`\n  });\n}"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAO,IAAMC,MAAM,GAAG,CAAC;AACvB,eAAe,SAASC,mBAAmB,CAACC,KAAK,EAAE;EAAA;EACjD,IACEC,YAAY,GAKVD,KAAK,CALPC,YAAY;IACZC,eAAe,GAIbF,KAAK,CAJPE,eAAe;IACfC,SAAS,GAGPH,KAAK,CAHPG,SAAS;IACTC,MAAM,GAEJJ,KAAK,CAFPI,MAAM;IAAA,mBAEJJ,KAAK,CADPK,SAAS;IAATA,SAAS,iCAAG,KAAK;EAEnB,IAAMC,aAAa,GAAGD,SAAS,KAAK,KAAK,GAAG,MAAM,GAAG,OAAO;EAC5D,IAAME,WAAW,GAAGF,SAAS,KAAK,KAAK,GAAG,OAAO,GAAG,MAAM;EAC1D,IAAMG,KAAK,yCACRF,aAAa,EAAG,CAACJ,eAAe,GAAGE,MAAM,GAAGN,MAAM,2BAClDS,WAAW,EAAG,CAAC,UACjB;EACD,QAAQN,YAAY;IAClB,KAAK,CAAC,CAAC;MACLO,KAAK,CAACC,GAAG,GAAG,CAAC,CAAC;MACd;IACF,KAAK,CAAC;MACJD,KAAK,CAACE,MAAM,GAAG,CAAC,CAAC;MACjB;IACF;MACE;MACAF,KAAK,CAACE,MAAM,GAAG,CAAC,CAAC;MACjBF,KAAK,CAACF,aAAa,CAAC,GAAGF,MAAM,GAAGN,MAAM;MACtC;EAAM;EAEV,OAAO,aAAaD,KAAK,CAACc,aAAa,CAAC,KAAK,EAAE;IAC7CH,KAAK,EAAEA,KAAK;IACZI,SAAS,YAAKT,SAAS;EACzB,CAAC,CAAC;AACJ"},"metadata":{},"sourceType":"module"}